package dao;

import org.apache.ibatis.annotations.Param;
import pojo.Student;

import java.util.List;

public interface StuDao {
//   List<Student> findAll(@Param("student") Student student,@Param("offset")int offset,@Param("pageSize")int pageSize);
//   List<Student> findAll2(@Param("student") Student student,@Param("offset")int offset,@Param("pageSize")int pageSize);
List<Student> findAll(@Param("studentNum")String studentNum, @Param("studentName")String studentName, @Param("offset")int offset, @Param("pageSize")int pageSize);
   int addStudent(Student student);
   int deleteStudentById(int sId);
   int updateStudent(Student student);
   Student findById(int sId);
   int count(Student student);

    int login(Student student);
}
